'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    
    const { ctx } = this;
    ctx.cookies.set("name","cheng",{
      httpOnly:true
    })
    ctx.body ={
      msg:"hello"
    }
  }
}

module.exports = HomeController;
